package com.sright.bcard.content.dal.mapper;

import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.content.dal.entity.TagLibraryDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TagLibraryDOMapper extends BaseMapper<TagLibraryDO> {

    int deleteByPrimaryKey(Long id);

    int deleteByPrimaryKeyAndEnterpriseId(@Param("id") Long id, @Param("enterpriseId") Long enterpriseId);

    List<TagLibraryDO> selectByEnterpriseId(@Param("enterpriseId") Long enterpriseId);

    List<TagLibraryDO> selectTagsLikeName(@Param("enterpriseId") Long enterpriseId, @Param("name") String name);

    List<TagLibraryDO> selectByIds(@Param("userTagIdList") List<Long> userTagIdList);
}